package com.ruoyi.common.domain.business;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 规格对象 product_sku
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product_sku")
@ApiModel(description = "规格")
public class ProductSku extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "${comment}")
    private Long id;
    /**
     * 料品号
     */
    @Excel(name = "料品号")
    @ApiModelProperty(name = "料品号")
    private String pigmentNum;
    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty(name = "单价")
    private BigDecimal unitPrice;
    /**
     * 逻辑删除(0表示未删除，1表示软删除)
     */
    @TableLogic
    @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
    private Long isDelete;
    /****
     * 产品id
     */
    @ApiModelProperty(name = "产品id")
    private Long productId;
}
